package yw.nmh.penInfo.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 圈舍管理表
 * @TableName pen
 */
@Schema(description = "圈舍管理实体")
@TableName(value ="pen")
@Data
public class Pen implements Serializable {
    /**
     *
     */
    @Schema(name = "penId", description = "圈舍编号")
    @TableId(type = IdType.AUTO)
    private Integer penId;

    /**
     * 牧场编号
     */
    @Schema(name = "farmId", description = "牧场编号")
    private Integer farmId;

    /**
     * 圈舍名称
     */
    @Schema(name = "penName", description = "圈舍名称")
    private String penName;

    /**
     * 存栏量
     */
    @Schema(name = "amountLivestock", description = "存栏量")
    private Integer amountLivestock;

    /**
     * 是否启用(1:启用,0:停用)
     */
    @Schema(name = "isEnable", description = "是否启用(1:启用,0:停用)")
    private Integer isEnable;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Schema(name = "createTime", description = "创建时间")
    private Date createTime;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Schema(name = "updateTime", description = "更新时间")
    private Date updateTime;


}
